<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./modules/html/image.php
 *  Last Mod.:  02/11/11 by Werner
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  Use this class to create images.
 */

require_once("html_component.php");

class Image extends Html_component
{
    public $Filename;
    
    //Use this constructor for a plain image
    public function __construct($filename)
    {
			$this->Filename = $filename;
    }		
    
    protected function GenerateHtml()
    {
			$this->Html = "<img src='{$this->Filename}'>";
    }
}

?>

